/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;
import transfer.Address;

/**
 *
 * @author Sergey
 */
public interface AddressLocalHome extends EJBLocalHome {

    public AddressLocal create(Address address)
            throws CreateException;

    public AddressLocal findByPrimaryKey(Integer idAddress)
            throws FinderException;

    public Collection findByCoordinates(Double longitude, Double latitude)
            throws FinderException;

    void remove(Address address);
}
